From da45f1d995caa91aff78eed5a2a6b04065e29b92 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 9 Jul 2002 02:41:40 +0000 Subject: [PATCH] (insert-directory): Be sure to bind coding-system-for-write to the just decided coding-system-for-read. --- lisp/files.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/files.el b/lisp/files.el index 27ecf1901d5..f457b85e189 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3910,12 +3910,12 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'." ;; Read the actual directory using `insert-directory-program'. ;; RESULT gets the status code. - (let ((coding-system-for-read - (and enable-multibyte-characters - (or file-name-coding-system - default-file-name-coding-system))) - ;; This is to control encoding the arguments in call-process. - (coding-system-for-write coding-system-for-read)) + (let* ((coding-system-for-read + (and enable-multibyte-characters + (or file-name-coding-system + default-file-name-coding-system))) + ;; This is to control encoding the arguments in call-process. + (coding-system-for-write coding-system-for-read)) (setq result (if wildcard ;; Run ls in the directory part of the file pattern -- 2.30.2